import React from 'react'
import { Pagination } from 'antd';
function Pagenation(props) {
    console.log(props,124);
    const fn = (page, pageSize)=>{
            console.log(page,pageSize);
            props.changefn(page)
    }
  return (
      <>
            {
                props.length1 &&  props.length1.length ? <Pagination defaultCurrent={1} total={props.length1.length}  onChange={fn} pageSize={5}/> :""
             }
      </>
  
    
  )
}

export default Pagenation